﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
//using System.Xml.Linq;

namespace KPIS.GERP.GHRMS.APP.App_UI.UserControls
{
    public partial class CMD_OldPositionInfo : System.Web.UI.UserControl
    {
        //private IClassBLL cBLL = new ClassBLL();
        //private IPositionTypeBLL ptBLL = new PositionTypeBLL();
        //protected void Page_Load(object sender, EventArgs e)
        //{
        //    bindJobSiteCombo();
        //    bindPosTypeCombo();
        //}
        //private void bindClasscombo()
        //{
        //    IList<ClassInfo> infoList = cBLL.ListClasses(posTypeCombo.SelectedValue);

        //    classCombo.DataSource = infoList;
        //    classCombo.DataBind();
        //}

        //private void bindJobSiteCombo()
        //{
        //    IList<JobSiteInfo> infoList = jsBLL.ListJobSiteByTypes(SystemInfo._JobsiteExternal);

        //    jobSiteCombo.DataSource = infoList;
        //    jobSiteCombo.DataBind();
        //}

        //private void bindPosTypeCombo()
        //{

        //    IList<PositionTypeInfo> infoList = ptBLL.ListPositionTypes(Convert.ToInt32(Session["EMPTYPE"].ToString()));

        //    posTypeCombo.DataSource = infoList;
        //    posTypeCombo.DataBind();
        //}
        //protected void btnFindPos_Click(object sender, ImageClickEventArgs e)
        //{
        //    string st = HidePos.Value;
        //    if (st == "")
        //        return;

        //    RecruitNewEmployeeBLL eBLL = new RecruitNewEmployeeBLL();
        //    PositionInfo posInfo = new PositionInfo();
        //    IList<PositionInfo> infoList = eBLL.GetPositions(Int32.Parse(st));

        //    if (infoList.Count > 0)
        //    {
        //        posInfo = infoList[0];
        //        txtPosition.Text = posInfo.Name;
        //        txtPosRef.Text = posInfo.RefNo;
        //        posTypeCombo.SelectedValue = posInfo.PositionType.Sequence.ToString();
        //        bindClasscombo();
        //    }
        //}
        //protected void btnFindPos_Load(object sender, EventArgs e)
        //{
        //    btnFindPos.Attributes.Add("OnClick", "LinkMDdetail(" + HidePos.ClientID + "," + "'Forms/DialogRC_Pos.aspx','../frmIframe.html',700,500)");
        //}

        //protected void posTypeCombo_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
        //{
        //    bindClasscombo();
        //}

        //protected void classCombo_SelectedIndexChanged(object o, RadComboBoxSelectedIndexChangedEventArgs e)
        //{

        //}
    }
}